<?php /* Smarty version 2.6.16, created on 2009-04-17 04:25:28
         compiled from PollList.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'str_replace', 'PollList.html', 6, false),array('function', 'url', 'PollList.html', 20, false),array('function', 'language', 'PollList.html', 23, false),array('function', 'module', 'PollList.html', 26, false),array('modifier', 'escape', 'PollList.html', 29, false),)), $this); ?>
<!-- START PANEL 1 -->
<table style="width:100%;" cellpadding="0" cellspacing="0">
<tr>
    <td style="width:90%;vertical-align:top;font-size:9pt;" class="color">
        <?php if ($this->_tpl_vars['iCnt']): ?>
        <?php echo smarty_function_str_replace(array('text' => "`viewing_ifrom_ito_out_of_icnt_polls`",'iFrom' => ($this->_tpl_vars['iFrom']),'iTo' => ($this->_tpl_vars['iTo']),'iCnt' => ($this->_tpl_vars['iCnt'])), $this);?>

        <?php endif; ?>
        <br />
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/pager_nav_button.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    </td>
</tr>
</table>
<!-- END PANEL 1 -->

<!-- START POLLS -->
<table style="width:100%;" cellpadding="8" cellspacing="8">
<tr>
<?php $_from = $this->_tpl_vars['aItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['aitems'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['aitems']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['iKey'] => $this->_tpl_vars['aItem']):
        $this->_foreach['aitems']['iteration']++;
?>
<td style="width:50%;vertical-align:top;" class="border2">
<form method="post" action="<?php echo smarty_function_url(array('link' => 'public.poll.vote','id' => $this->_tpl_vars['aItem']['id']), $this);?>
">
<table style="width:100%;"><tr><td style="font-size:8pt;text-align:left;" class="color">
<div style="padding-left:10px;"><br/><div style="font-size:8pt;font-weight:bold;" class="color">
<?php if ($this->_tpl_vars['bAdmin']): ?><div><a class="link_action" onclick="return confirm('<?php echo smarty_function_language(array('text' => 'do_you_want_delete_this_item'), $this);?>
');" href="<?php echo smarty_function_url(array('link' => 'public.poll','delete' => $this->_tpl_vars['aItem']['id']), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'delete'), $this);?>
 ]</a></div><br /><?php endif; ?>
 <div style="font-size:7pt;font-weight:normal;"></div>
<a href="<?php echo smarty_function_url(array('link' => 'public.user','name' => $this->_tpl_vars['aItem']['user']), $this);?>
">
    <?php echo smarty_function_module(array('module' => 'Account','component' => 'Avatar','sUser' => $this->_tpl_vars['aItem']['user'],'iSize' => 60,'class' => 'pic1','onmouseover' => "showInfo5('".($this->_tpl_vars['aItem']['user'])."', '', '');this.className='pic2';",'onmouseout' => "this.className='pic1';return nd();"), $this);?>

</a>
<br/>
<?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['poll'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</div>
<?php if ($this->_tpl_vars['aItem']['answer']): ?>
    <div style="padding-left:10px;font-size:8pt;" class="color"><br/>
    <?php echo smarty_function_language(array('text' => 'you_have_already_voted_on_this_poll'), $this);?>
 <br /><br /><b><?php echo smarty_function_language(array('text' => 'your_answer'), $this);?>
:</b><br /> <?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['answer'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
<br /></div>
<?php else: ?>
<div style="padding-left:10px;font-size:8pt;" class="color"><br/>
    <?php if ($this->_tpl_vars['aItem']['o1'] != ''): ?>
        <div style="font-size:7pt; padding-bottom:6px;" class="color">
        <label><input type="radio" name="answer" class="pollinput" value="1" style="border:0px;vertical-align:middle;" />
        <?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['o1'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</label>
        </div>
    <?php endif; ?>
    <?php if ($this->_tpl_vars['aItem']['o2'] != ''): ?>
        <div style="font-size:7pt; padding-bottom:6px;" class="color">
        <label><input type="radio" name="answer" class="pollinput" value="2" style="border:0px;vertical-align:middle;" />
        <?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['o2'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</label>
        </div>
    <?php endif; ?>
    <?php if ($this->_tpl_vars['aItem']['o3'] != ''): ?>
        <div style="font-size:7pt; padding-bottom:6px;" class="color">
        <label><input type="radio" name="answer" class="pollinput" value="3" style="border:0px;vertical-align:middle;" />
        <?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['o3'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</label>
        </div>
    <?php endif; ?>
    <?php if ($this->_tpl_vars['aItem']['o4'] != ''): ?>
        <div style="font-size:7pt; padding-bottom:6px;" class="color">
        <label><input type="radio" name="answer" class="pollinput" value="4" style="border:0px;vertical-align:middle;" />
        <?php echo ((is_array($_tmp=$this->_tpl_vars['aItem']['o4'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
</label>
        </div>
    <?php endif; ?>
</div>
            <?php if (! $this->_tpl_vars['aItem']['answer']): ?>
                        <div style="padding:5px;text-align:center;">
                            <input type="submit" value=" <?php echo smarty_function_language(array('text' => 'vote'), $this);?>
 " />
                        </div>
            <?php endif;  endif;  if ($this->_tpl_vars['aItem']['can_view']): ?><br /><div style="padding-left:10px;font-size:8pt;"><a class="link_action" href="<?php echo smarty_function_url(array('link' => 'public.poll.view','id' => $this->_tpl_vars['aItem']['id']), $this);?>
">[ <?php echo smarty_function_language(array('text' => 'view_the_results'), $this);?>
 ]</a></div><?php endif; ?>
</div>
</td>
</tr>
</table>
 </form>
</td>
<?php if ($this->_tpl_vars['iKey'] % 2 == 1): ?>
</tr><tr>
<?php endif;  endforeach; else: ?>
<td>
<div class="message_info">
<?php echo smarty_function_language(array('text' => 'there_are_no_polls_yet'), $this);?>

</div>
</td>
<?php endif; unset($_from); ?>
</tr>
</table>
<!-- START POLLS -->

<br />

<!-- START PANEL 2 -->
<table style="width:100%;" cellpadding="0" cellspacing="0">
<tr>
    <td style="width:90%;vertical-align:top;font-size:9pt;" class="color">
        <?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => ($this->_tpl_vars['sRootPath'])."/_blocks/pager_nav_button.html", 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
    </td>
</tr>
</table>
<!-- END PANEL 2 -->